package lab02.test35;

/**
 * Created by ASUS on 2017/11/20.
 */
public class Salesman extends Employee {
    private double num ;
    private double salary = 2000;
    @Override
    public String toString() {
        return super.toString();
    }
    @Override
    public double computeSalary() {
        return salary+num*35;
    }
    Salesman() {
        super();
    }
    Salesman(String name, String no,double num) {
        super(name, no);
        this.num = num;
    }
    public double getNum() {
        return num;
    }
    public void setNum(double num) {
        this.num = num;
    }
}
